places: Fix crash when right clicking row
authorCorey Berla <corey@berla.me>
Thu, 21 Apr 2022 20:01:00 +0000 (13:01 -0700)
committerAntónio Fernandes <antoniof@gnome.org>
Sat, 7 May 2022 17:45:17 +0000 (18:45 +0100)
commit7ed8a6ae3cba326980d247ad227f5bd107e67b06
tree685c298182d8c7fc02110c5f0606200475815152
parentff84b96480dd965095a9e910443350dbc0e8d96a
places: Fix crash when right clicking row

After right clicking multiple rows, or after adding / removing rows
(i.e. new network locations), right clicking the row will crash
nautilus.

This happens because the popover may become orphan but still expect
a parent.

Reposition the popover menu instead of reparenting it.
gtk/gtkplacesview.c